<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script src="./mySet.js"></script>

    <script>
      const mySet = new MySet([1, 32, 2, 3, 2]);
      mySet.add(1);
      mySet.delete(2);

      for (const element of mySet) {
        console.log(element);
      }

      mySet.forEach((item, index, set) => {
        console.log(item, index, set);
      });
      console.log(mySet);
    </script>
  </body>
</html>
